#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define OFFSET(x,y) (int)&(((S*)0)->y)

typedef struct S 
{
	char a;
	int b;
	double c;
	int d;
}s;


int main()
{
	printf("%d\n", OFFSET(S, a));
	printf("%d\n", OFFSET(S, b));
	printf("%d\n", OFFSET(S, c));
	printf("%d\n", OFFSET(S, d));
}